﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.WindowsAzure.StorageClient;
using Microsoft.WindowsAzure;
using System.Threading;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;

namespace Melos
{
    /**
     * work queue class. just casts the Objects to WorkQueueItems.
     */
    public class WorkQueue : GenericQueue
    {

        public WorkQueue(CloudStorageAccount sa) : base(sa, "work") {}
        public WorkQueueItem getItem() {
            return (WorkQueueItem)base.getObject();
        }
   }
    [Serializable]
    public class WorkQueueItem
    {
        public int maxSize { get; set; }
        public string blobAddress { get; set; }
    }
}
